import { defineStore } from 'pinia';

/**
 * 路由列表
 */
export const useRoutesList = defineStore('routesList', {
  state: () => ({
    routesList: [] as string[],
  }),
  actions: {
    setRoutesList(data: Array<string>) {
      this.routesList = data;
    },
  },
});
